package com.mofang.powerdekorhelper.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yml on 2016/9/9.
 */
public class Product implements Serializable {

    private Integer code;
    private String message;
    private Result result;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public class Result implements Serializable {
        private List<ProductData> data;
        private Integer page;
        private Integer pageSize;
        private Integer total;
        private boolean ispage;

        public List<ProductData> getData() {
            return data;
        }

        public void setData(List<ProductData> data) {
            this.data = data;
        }

        public Integer getPage() {
            return page;
        }

        public void setPage(Integer page) {
            this.page = page;
        }

        public Integer getPageSize() {
            return pageSize;
        }

        public void setPageSize(Integer pageSize) {
            this.pageSize = pageSize;
        }

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        public boolean ispage() {
            return ispage;
        }

        public void setIspage(boolean ispage) {
            this.ispage = ispage;
        }

        public class ProductData implements Serializable {
            private Integer product_id;
            private String image_url;
            private String product_name;
            private Integer sale_num;
            private Double min_prom_price;
            private Double min_price;
            //private List<Integer> promotion_types;

            public Integer getProduct_id() {
                return product_id;
            }

            public void setProduct_id(Integer product_id) {
                this.product_id = product_id;
            }

            public String getImage_url() {
                return image_url;
            }

            public void setImage_url(String image_url) {
                this.image_url = image_url;
            }

            public String getProduct_name() {
                return product_name;
            }

            public void setProduct_name(String product_name) {
                this.product_name = product_name;
            }

            public Integer getSale_num() {
                return sale_num;
            }

            public void setSale_num(Integer sale_num) {
                this.sale_num = sale_num;
            }

            public Double getMin_prom_price() {
                return min_prom_price;
            }

            public void setMin_prom_price(Double min_prom_price) {
                this.min_prom_price = min_prom_price;
            }

            public Double getMin_price() {
                return min_price;
            }

            public void setMin_price(Double min_price) {
                this.min_price = min_price;
            }

           /* public List<Integer> getPromotion_types() {
                return promotion_types;
            }

            public void setPromotion_types(List<Integer> promotion_types) {
                this.promotion_types = promotion_types;
            }*/
        }

    }
}
